package com.dotflat.training.domain;

import com.dotflat.rest.domain.AreableObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "ot_course_check_record", uniqueConstraints = {@UniqueConstraint(columnNames = {"offlineCourseId", "staffId", "deleted"})})
@Data
@EqualsAndHashCode(callSuper = true)
public class OTCourseCheckRecord extends AreableObjectBase {

	@Column(columnDefinition = " varchar(32)  COMMENT '线下课id'")
	private String offlineCourseId;

	@Column(columnDefinition = " varchar(32)  COMMENT '老师的id'")
	private String staffId;

	@Column(columnDefinition = " varchar(32)  COMMENT '老师的名字'")
	private String staffName;

	@Column(columnDefinition = " varchar(255)  COMMENT '上传老师头像'")
	private String staffHeadImg;
}
